<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PCMS内容管理系统</title>
<link href="<?php echo $_tpl['css']; ?>admin.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function check()
{
	var item = document.getElementById( "value" );

	if ( item.value == "" )
	{
		alert( "请输入内容" );
		item.focus();
		return false;
	}

	item = document.getElementById( "memo" );

	if ( item.value == "" )
	{
		alert( "请输入备注" );
		item.focus();
		return false;
	}

	document.getElementById( "submit" ).disabled = true;
	return true;
}
</script>
</head>
<body>
<form id="apply" method="post" onsubmit="return check()">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="reference" value="<?php echo $reference; ?>">
<table width="90%" border="0" align="center" cellpadding="5" cellspacing="1">
  <tr>
    <td width="38%" height="20" align="right" bgcolor="#272727">名称</td>
    <td width="62%" height="20" colspan="2" align="left" bgcolor="#272727"><?php echo $name; ?></td>
  </tr>
  <tr>
    <td height="20" align="right" bgcolor="#323232">内容</td>
    <td height="20" colspan="2" align="left" bgcolor="#323232"><input type="text" name="value" id="value" value="<?php echo $value; ?>">
      <a href="#"></a></td>
  </tr>
  <tr>
    <td height="20" align="right" bgcolor="#272727">备注</td>
    <td height="20" colspan="2" align="left" bgcolor="#272727"><input type="text" name="memo" id="memo" value="<?php echo $memo; ?>">
      <a href="#"></a></td>
  </tr>
  <tr>
    <td height="20" colspan="16" align="center" bgcolor="#000000">
		<table width="40%">
			<tr align="center">
				<td><input class="btn2" type="submit" id="submit" value="提交"></td>
				<td><input class="btn2" type="button" value="返回" onclick="window.location.href='<?php echo $reference; ?>'"></td>
			</tr>
		</table>
	</td>
  </tr>
</table>
</form>
</body>
</html>